package com.xuxin.baby.contract;

import com.xuxin.baby.bean.UploadFilesBean;
import com.xuxin.baby.presenter.UploadFilesPresenter;

import java.util.List;

import okhttp3.MultipartBody;

/**
 * Created by xu_xin
 * Created on 2020/10/29 0029
 * 上传图片
 */
public interface UploadFilesContract {

    interface Model {

        void uploadFiles(UploadFilesPresenter presenter, String tenantId, String token, String objectId, String objectName, String objectField, List<MultipartBody.Part> parts);
    }

    interface View extends BaseContract.view {

        void onSuccess(UploadFilesBean uploadFilesBean);
    }

    interface Presenter extends BaseContract.presenter {

        void uploadFiles(String tenantId, String token, String objectId, String objectName, String objectField, List<MultipartBody.Part> parts);

        void onSuccess(UploadFilesBean uploadFilesBean);
    }
}